const local = {
  ENV: 'local',
  VERSION: '0.0.1',
  URL: {},
};
const dev = {
  ENV: 'dev',
  VERSION: '0.0.1',
  URL: {},
};

const locationHost = window.location.host;
let WORKBENCH_ENV = local;

if (locationHost.indexOf('localhost') > -1 || !/[a-zA-Z]/.test(locationHost)) {
  WORKBENCH_ENV = local;
} else if (locationHost.indexOf('dev') > -1) {
  WORKBENCH_ENV = dev;
}
window.WORKBENCH = WORKBENCH_ENV;
